export interface ApiResponse<T = any> {
    code: number
    data: T
    message: string
}

export interface RegisterParams {
    username: string
    email?: string
    password: string
    confirmPassword: string
}

export interface LoginParams {
    username: string
    password: string
    salt?: string
}

export interface UserInfo {
    id: string
    username: string
    avatar?: string
    roles: string[]
    permissions: string[]
}


export interface LoginResponse {
    access_token: string
    userInfo: UserInfo
}
